package com.qmds.patrolserver.tickes.controller;


import com.qmds.common.core.vo.R;
import com.qmds.patrolserver.process.params.ProcessParam;
import com.qmds.patrolserver.process.service.PatrolProcessService;
import com.qmds.patrolserver.tickes.service.PatrolTickesService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * (PatrolTickes)表控制层
 *
 * @author makejava
 * @since 2024-09-11 20:15:42
 */
@RestController
@RequestMapping("app/patrol/tickes")
public class PatrolTickesController{
    /**
     * 服务对象
     */
    @Resource
    private PatrolTickesService patrolTickesService;

    @Resource
    private PatrolProcessService patrolProcessService;

    @GetMapping("/getAll")
    public R getAll(){
        return patrolTickesService.getAll();
    }

    @GetMapping("/detail")
    public R detail(Integer id){
        return patrolTickesService.detail(id);
    }

    @PostMapping("/add")
    public R add(@RequestBody ProcessParam param){
        return patrolProcessService.process(param);
    }



}

